package Mangos::DB::Characters::MailItems;

use strict;

use base qw(Mangos::DB::Characters);

__PACKAGE__->meta->setup
(
    table   => 'mail_items',

    columns => 
    [
        mail_id       => { type => 'integer', not_null => 1 },
        item_guid     => { type => 'integer', not_null => 1 },
        item_template => { type => 'integer', default => '0', not_null => 1 },
        receiver      => { type => 'integer', default => '0', not_null => 1 },
    ],

    primary_key_columns => [ 'mail_id', 'item_guid' ],
);

1;

package Mangos::DB::Characters::MailItems::Manager;

use strict;
use warnings;

use base 'Rose::DB::Object::Manager';

sub object_class { 'Mangos::DB::Characters::MailItems' }

__PACKAGE__->make_manager_methods('mail_items');

1;
